package com.swg.seckill.config;


import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;

@Configuration
public class RabbitDirectConfig {
//    private final String ROUTINGKEY1 = "queue.red";
//    private final String ROUTINGKEY2 = "queue.green";
//
//    @Bean
//    public Queue queue(){
//        return new Queue("queue");
//    }
//
//    @Bean
//    public Queue queue01(){
//        return new Queue("queue01");
//    }
//
//    @Bean
//    public Queue queue02(){
//        return new Queue("queue02");
//    }
//
//    @Bean
//    public DirectExchange directExchange(){
//        return new DirectExchange("DirectExchange");
//    }
//
//    @Bean
//    public Binding binding01(){
//        return BindingBuilder.bind(queue01()).to(directExchange()).with(ROUTINGKEY1);
//    }
//
//    @Bean
//    public Binding binding02(){
//        return BindingBuilder.bind(queue02()).to(directExchange()).with(ROUTINGKEY2);
//    }
}
